package com.gxaedu.shiro.controller;

import com.gxaedu.shiro.dto.ResultData;
import com.gxaedu.shiro.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


@RestController
public class MenuController {

    @Autowired
    private MenuService menuService;

    /**
     * 获取菜单的方法
     * @param request
     * @return
     */
    @PostMapping("/menu")
    public ResultData getMenu(HttpServletRequest request){
        return menuService.getMenu(request);
    }

}
